import Vue from 'vue'
import Router from 'vue-router'
import App from './App.vue'

Vue.use(Router);

export default new Router({
  linkActiveClass: 'active',
  routes: [
    {
      path: '/',
      name: 'app',
      redirect: '/auth',
      component: App,
      children: [
        {
          path: 'auth',
          name: 'login',
          redirect: '/auth/login',
          component: () => import('./views/auth/Auth'),
          children: [
            {
              path: 'login',
              name: 'login',
              component: () => import('./views/auth/Login')
            },
            {
              path: 'screen',
              name: 'screen',
              component: () => import('./views/Screen')
            },
            {
              path: 'about',
              name: 'about',
              component: () => import('./views/About')
            }
          ]
        }
      ]
    }
  ]
})
